﻿#ifndef AXISTHRESHOLDWIDGET_H
#define AXISTHRESHOLDWIDGET_H

#include <QWidget>
#include <QApplication>
#include <QDomDocument>
#include <QFile>
#include <QTableWidget>
#include <qtablewidget.h>
#include <QHeaderView>
#include <QGridLayout>
#include <QPushButton>
#include <QDebug>
#include <qcombobox.h>
#include <QLabel>
#include <QMessageBox>
#include <QLineEdit>
#include <QButtonGroup>
#include "define.h"
#include "capcontroldefine.h"
#include "quiqss.h"

class QAxisThresholdWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QAxisThresholdWidget(int i32AixsNo,QWidget *parent = nullptr);

    void showRcvdata11(_loopdata_11 rcvdata11);
    void showRcvdata55(_loopdata_55 rcvdata55);

signals:
    void signal_setparam(int i32Aixs,int cmdid,int i32value,int datalen);

public slots:

    void onSetParamButtonClick();

    void onParamSaveButtonClick();
private:

    void InitUI();

    void InitParamConfig();

    float cacldata(st_cmd_attr cmd);

    QWidget* createParamSetWidget();//参数设置

    void setButtonStyleSheet(QPushButton* pBtn);


    QTableWidget* _pParamSetWidget;

//    QComboBox* _pParamModifyModeComBox;
    QPushButton* _pParamSaveBtn;

    QMap<int,st_cmd_attr> _cmdMap;


    int _i32AixsNo;//轴编号

    _loopdata_11 _rcvdata_11;
    _loopdata_55 _rcvdata_55;


};

#endif // AXISCONTROLWIDGET_H
